package k2_oop.p1_classAndObject.demo01;

public class TestDemo1 {
    public static void main(String[] args) {

        //1.创建实例化对象
        Car car1 = new Car();
        Car car2 = new Car();

        car1.color = "白色";
        car1.brand = "劳斯莱斯";
        car1.carNum = "黑A88888";
        car1.price = 3000000.0;

        car2.color = "黑色";
        car2.brand = "布加迪";
        car2.carNum = "黑A99999";
        car2.price = 5000000.0;

        System.out.println("car1===color:"+car1.color+",brand:"+ car1.brand+
                ",carNum:"+car1.carNum+",price:"+car1.price);

        System.out.println("car2===color:"+car2.color+",brand:"+ car2.brand+
                ",carNum:"+car2.carNum+",price:"+car2.price);

    }
}
